package com.loong.ems.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author 龙勇-229970722
 * @date 2025-01-02 11:37
 * @description: 用户实体类
 */

@Data
@TableName("sys_user")
public class SysUser {

    /**
     * 用户ID
     */
    @TableId
    @Schema(description = "用户ID")
    private Long id;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String name;

    /**
     * 登录账户
     */
    @Schema(description = "登录账户")
    private String account;

    /**
     * 登录密码
     */
    @Schema(description = "登录密码")
    private String password;

    /**
     * 状态 (0-正常 1-禁用)
     */
    @Schema(description = "状态 (0-正常 1-禁用)")
    private Integer status;

    /**
     * 角色权限
     */
    @Schema(description = "角色权限")
    private String role;
}